/* 统一组件库样式 - 符合OJ系统设计规范 */

/* ========== TableCard 样式 ========== */
.tableCard {
  background: var(--bg-container);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-light);
  transition: all var(--animation-duration-base) ease;
  overflow: hidden;
}

.tableCard:hover {
  box-shadow: var(--shadow-2);
}

.table {
  background: transparent;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

@keyframes borderGlow {
  0%, 100% { 
    opacity: 0.5; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.01); 
  }
}

/* 表格内边框精细调整已在上方定义 */

/* 表格角落装饰 - 暂时移除避免布局问题 */

/* 表格分页器美化 */
.tableCard :global(.ant-pagination) {
  margin: 16px 0;
  text-align: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, 
    rgba(24, 144, 255, 0.02) 0%, 
    rgba(24, 144, 255, 0.01) 100%);
  border-top: 1px solid rgba(24, 144, 255, 0.1);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.tableCard :global(.ant-pagination-item) {
  border: 1px solid rgba(24, 144, 255, 0.2);
  transition: all 0.2s ease;
}

.tableCard :global(.ant-pagination-item:hover) {
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

.tableCard :global(.ant-pagination-item-active) {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.tableCard :global(.ant-pagination-prev),
.tableCard :global(.ant-pagination-next) {
  border: 1px solid rgba(24, 144, 255, 0.2);
  transition: all 0.2s ease;
}

.tableCard :global(.ant-pagination-prev:hover),
.tableCard :global(.ant-pagination-next:hover) {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* 表格行悬停效果 */
.tableCard :global(.ant-table-row) {
  cursor: pointer;
  transition: all var(--animation-duration-base) ease;
}

.tableCard :global(.ant-table-row:hover) {
  background-color: var(--bg-hover) !important;
}

/* 表格头部样式 */
.tableCard :global(.ant-table-thead > tr > th) {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  text-align: center !important;
  position: relative;
  padding: 16px 12px !important;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* 表格头部渐变背景效果 */
.tableCard :global(.ant-table-thead > tr > th::before) {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(24, 144, 255, 0.05) 0%, 
    rgba(24, 144, 255, 0.02) 50%, 
    rgba(24, 144, 255, 0.05) 100%);
  z-index: -1;
}


/* ========== FilterCard 样式 ========== */
.filterCard {
  background: var(--bg-container);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-light);
  margin-bottom: var(--spacing-lg);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* 过滤卡片顶部装饰线 */
.filterCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--color-primary) 0%, 
    rgba(24, 144, 255, 0.6) 50%, 
    var(--color-primary) 100%);
  z-index: 1;
}

.filterCard:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.filterContent {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.titleSection {
  flex-shrink: 0;
}

.pageTitle {
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
  color: var(--text-primary);
}

.titleIcon {
  font-size: 18px;
  color: var(--color-primary);
}

.formSection {
  flex: 1;
  min-width: 300px;
}

.filterForm {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.filterForm :global(.ant-form-item) {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.filterForm :global(.ant-form-item-label) {
  padding: 0;
  white-space: nowrap;
}

.filterForm :global(.ant-input),
.filterForm :global(.ant-select-selector),
.filterForm :global(.ant-btn) {
  height: 32px;
  border-radius: var(--border-radius-base);
}

.extraSection {
  flex-shrink: 0;
  display: flex;
  gap: var(--spacing-sm);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .filterContent {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
  
  .titleSection,
  .formSection,
  .extraSection {
    width: 100%;
  }
  
  .filterForm {
    justify-content: flex-start;
  }
}

/* ========== InfoCard 样式 - 苹果风格设计 ========== */
.infoCard {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

/* 列表中的卡片分隔线效果 */
.infoCard + .infoCard {
  position: relative;
}

.infoCard + .infoCard::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(24, 144, 255, 0.1) 20%, 
    rgba(24, 144, 255, 0.3) 50%, 
    rgba(24, 144, 255, 0.1) 80%, 
    transparent 100%);
  opacity: 0.6;
}

.infoCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  z-index: 1;
}

.infoCard:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(24, 144, 255, 0.3);
}

/* 默认信息卡片 - 苹果风格 */
.infoCard_default {
  position: relative;
}

.infoCard_default::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 144, 255, 0.05) 0%, transparent 70%);
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.4;
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.4; }
  50% { transform: translateY(-50%) scale(1.08); opacity: 0.2; }
}

.defaultContent {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
  padding: 8px;
}

.defaultIcon {
  font-size: 28px;
  color: var(--primary-color);
  filter: drop-shadow(0 2px 6px rgba(24, 144, 255, 0.25));
  transition: all 0.3s ease;
}

.infoCard_default:hover .defaultIcon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-light);
}

/* 统计信息卡片 - 苹果风格 */
.infoCard_statistic {
  text-align: center;
  position: relative;
}

.infoCard_statistic::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 144, 255, 0.08) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.1); }
}

.statisticContent {
  position: relative;
  z-index: 2;
  padding: 8px;
}

.statisticIcon {
  font-size: 36px;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
  filter: drop-shadow(0 2px 8px rgba(24, 144, 255, 0.3));
  transition: all 0.3s ease;
}

.infoCard_statistic:hover .statisticIcon {
  transform: scale(1.1);
  color: var(--primary-light);
}

.infoCard_statistic :global(.ant-statistic-content) {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.infoCard_statistic :global(.ant-statistic-title) {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

/* 个人资料卡片 - 苹果风格 */
.infoCard_profile {
  position: relative;
}

.infoCard_profile::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 196, 26, 0.06) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.2; }
}

.profileContent {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 2;
  padding: 8px;
}

.profileAvatar {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
}

.infoCard_profile:hover .profileAvatar {
  transform: scale(1.05);
}

.profileInfo {
  flex: 1;
  min-width: 0;
}

/* 状态信息卡片 - 苹果风格 */
.infoCard_status {
  position: relative;
}

.statusContent {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
  padding: 8px;
}

.statusIcon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
}

.infoCard_status:hover .statusIcon {
  transform: scale(1.1);
}

/* 状态颜色 - 苹果风格纯净版 */
.status_success {
  border-color: rgba(82, 196, 26, 0.2);
}

.status_success::before {
  background: linear-gradient(90deg, transparent, rgba(82, 196, 26, 0.15), transparent);
}

.status_success .statusIcon {
  color: var(--success-color);
  filter: drop-shadow(0 1px 3px rgba(82, 196, 26, 0.2));
}

.status_warning {
  border-color: rgba(250, 173, 20, 0.2);
}

.status_warning::before {
  background: linear-gradient(90deg, transparent, rgba(250, 173, 20, 0.15), transparent);
}

.status_warning .statusIcon {
  color: var(--warning-color);
  filter: drop-shadow(0 1px 3px rgba(250, 173, 20, 0.2));
}

.status_error {
  border-color: rgba(255, 77, 79, 0.2);
}

.status_error::before {
  background: linear-gradient(90deg, transparent, rgba(255, 77, 79, 0.15), transparent);
}

.status_error .statusIcon {
  color: var(--error-color);
  filter: drop-shadow(0 1px 3px rgba(255, 77, 79, 0.2));
}

.status_info {
  border-color: rgba(24, 144, 255, 0.2);
}

.status_info::before {
  background: linear-gradient(90deg, transparent, rgba(24, 144, 255, 0.15), transparent);
}

.status_info .statusIcon {
  color: var(--info-color);
  filter: drop-shadow(0 1px 3px rgba(24, 144, 255, 0.2));
}

/* InfoCard 响应式优化 - 苹果风格 */
@media (max-width: 768px) {
  .infoCard {
    border-radius: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }
  
  .infoCard:hover {
    transform: translateY(-2px) scale(1.01);
  }
  
  .statisticIcon,
  .defaultIcon {
    font-size: 24px;
  }
  
  .statusIcon {
    font-size: 20px;
  }
  
  .defaultContent,
  .profileContent,
  .statusContent,
  .statisticContent {
    padding: 6px;
  }
}

/* 始终保持明亮色调，无暗色模式 */

/* ========== FormCard 样式 ========== */
.formCard {
  background: var(--bg-container);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* 表单卡片标题居中 */
.formCard :global(.ant-card-head) {
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, 
    rgba(24, 144, 255, 0.03) 0%, 
    rgba(24, 144, 255, 0.01) 100%);
  border-bottom: 2px solid rgba(24, 144, 255, 0.1);
}

.formCard :global(.ant-card-head-title) {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.formCard:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.form {
  /* Form组件的基础样式 */
}

.formContent {
  margin-bottom: var(--spacing-lg);
}

.formActions {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-light);
}

.actions_left {
  text-align: left;
}

.actions_center {
  text-align: center;
}

.actions_right {
  text-align: right;
}

/* 表单项样式统一 */
.form :global(.ant-form-item-label > label) {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.form :global(.ant-form-item-label) {
  text-align: left;
  padding: 0 0 4px 0;
}

.form :global(.ant-input),
.form :global(.ant-input-number),
.form :global(.ant-select-selector),
.form :global(.ant-picker) {
  border-radius: var(--border-radius-base);
  border-color: var(--border-base);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form :global(.ant-input:focus),
.form :global(.ant-input-number:focus),
.form :global(.ant-select-focused .ant-select-selector),
.form :global(.ant-picker:focus) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2), 0 2px 6px rgba(24, 144, 255, 0.1);
  transform: translateY(-1px);
}

.form :global(.ant-input:hover),
.form :global(.ant-input-number:hover),
.form :global(.ant-select-selector:hover),
.form :global(.ant-picker:hover) {
  border-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 响应式表单 */
@media (max-width: 768px) {
  .formActions {
    text-align: center !important;
  }
  
  .formActions :global(.ant-space) {
    width: 100%;
    justify-content: center;
  }
} 